package com.atis.warplot.database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "t_columna_hexagono")
@Proxy(lazy = false)
public class ColumnaHexagono {

	private int id;

	private int indice;

	private FilaHexagono filaHexagonoRef;

	// --------------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// --------------------------------------------------------------------------------

	public int getIndice() {
		return indice;
	}

	public void setIndice(int indice) {
		this.indice = indice;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public FilaHexagono getFilaHexagonoRef() {
		return filaHexagonoRef;
	}

	public void setFilaHexagonoRef(FilaHexagono filaHexagonoRef) {
		this.filaHexagonoRef = filaHexagonoRef;
	}

	// --------------------------------------------------------------------------------

}
